import devSearchFormProps, {DevSearchFormProps} from '../../../components/DevSearchForm/index';
import devSearchTableProps, {DevSearchTableProps} from '../../../components/DevSearchTable/index';

import type {ExtractPropTypes} from 'vue'
import {buildProps} from "@/utils";

export const devFormTableProps = buildProps({
    searchForm:{
        type: Object as () => DevSearchFormProps,
        default: () => (devSearchFormProps)
    },
    searchTable:{
        type: Object as () => DevSearchTableProps,
        default: () => (devSearchTableProps)
    },
    // 重置按钮点击是否调用调用接口
    isResetBtnRequest: {
        type: Boolean,
        default: true
    },
    // 重置按钮点击是否清空Table数据
    isResetBtnClearTable: {
        type: Boolean,
        default: true
    },
} as const)
export type DevFormTableProps = ExtractPropTypes<typeof devFormTableProps>
